;(function($){
	$.fn.extend({
		"PopupWinV2" : function(popupWin){
			popupWin = $.extend({
				popupClass:'.popup_win_v2',
				maskLayer:true
			}, popupWin || {});
			var _this = $(this);
			var _popupWidth = $(popupWin.popupClass).outerWidth();
			var _popupHeight = $(popupWin.popupClass).outerHeight();
			var _winScrollTop = $(window).scrollTop();
			var _winHeight = $(window).height();
			var _docHeight = $(document).height();
			$(popupWin.popupClass).css({"margin-left":-(_popupWidth/2),top:(_winHeight-_popupHeight)/2+_winScrollTop,display:"block"});
/*			$(popupWin.popupClass).css({"margin-left":-(_popupWidth/2),top:50,display:"block"});*/
			if(popupWin.maskLayer){
				$(popupWin.popupClass).after("<div class='popup_mask'></div>");
				$(".popup_mask").css("height",_docHeight);
				if ($.browser.msie && $.browser.version <= 6){
					$(".popup_mask").after("<iframe class='popup_iframe' frameborder='0'></iframe>");
					$(".popup_iframe").css("height",_docHeight);
				}
			}
			$(".pop_close",popupWin.popupClass).click(function(){
				$(popupWin.popupClass).hide();
				$(".popup_mask").remove();
				$(".popup_iframe").remove();
			});
		}
	});
})(jQuery);